package example.file;

import java.io.File;

/**
 * Created by lenovo on 2016/11/4 0004.
 * 判断文件是否存在file.exists()
 */
public class IsExist {
    public static void main(String[] args) {
        File file = new File("C:/java.txt");
        System.out.println(file.exists());
    }
}
